Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include urls in @actions/github context #794

Merged
merged 2 commits into from May 7, 2021
Merged

Conversation

thboop
Copy link
Collaborator

@thboop thboop commented May 6, 2021

Resolves #576

We have various env variables that are set to indicate the github endpoints for rest/graphql/web. These are typically the same for dotcom users, but for ghes, being able to programmatically get that information in an action is helpful. This pr adds those values to the github context, you can see the documentation on these variables here

@thboop thboop requested a review from luketomlinson May 6, 2021 17:25
@thboop thboop requested a review from a team as a code owner May 6, 2021 17:25
Copy link
Contributor

@luketomlinson luketomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@thboop thboop merged commit 2b97eb3 into main May 7, 2021
@thboop thboop deleted the thboop/UpdateGithubContext branch August 25, 2021 20:06
Bullrich added a commit to Bullrich/Prace.js that referenced this pull request Jan 14, 2022
## System changed
- Dependency versions
- Build

## Description

Updated packages to latest version to support new features available in GitHub Actions, including GitHub enterprise edition (this PR brings that new functionality: actions/toolkit#794).

Some dependency types have changed and they have been updated to the new types.

The `octokitHack.ts` file is no longer needed as that bug has been fixed: actions/toolkit#228

The build directory has been recreated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request: Adding Github Host to context to enable writing actions for github enterprise
2 participants